package com.android.takeaway.bean;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 店铺
 */
public class Shop implements Serializable {
    private static final long serialVersionUID = 1L; //序列化时保持ShopBean类版本的兼容性
    private int id;                       //商店ID
    private String shopName;              //商店名称
    private int saleNum;                  //月销量
    private BigDecimal offerPrice;        //起送价格
    private BigDecimal distributionCost;  //配送费用
    private String welfare;               //福利
    private String time;                  //配送时间
    private String shopPic;               //店铺图片
    private String shopNotice;            //公告

    public Shop() {
    }

    private List<Food> foodList;      //<>泛型 表示是什么类型

    public Shop(int id, String shopName, int saleNum, BigDecimal offerPrice, BigDecimal distributionCost, String welfare, String time, String shopPic, String shopNotice, List<Food> foodList) {
        this.id = id;
        this.shopName = shopName;
        this.saleNum = saleNum;
        this.offerPrice = offerPrice;
        this.distributionCost = distributionCost;
        this.welfare = welfare;
        this.time = time;
        this.shopPic = shopPic;
        this.shopNotice = shopNotice;
        this.foodList = foodList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(int saleNum) {
        this.saleNum = saleNum;
    }

    public BigDecimal getOfferPrice() {
        return offerPrice;
    }

    public void setOfferPrice(BigDecimal offerPrice) {
        this.offerPrice = offerPrice;
    }

    public BigDecimal getDistributionCost() {
        return distributionCost;
    }

    public void setDistributionCost(BigDecimal distributionCost) {
        this.distributionCost = distributionCost;
    }

    public String getWelfare() {
        return welfare;
    }

    public void setWelfare(String welfare) {
        this.welfare = welfare;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getShopPic() {
        return shopPic;
    }

    public void setShopPic(String shopPic) {
        this.shopPic = shopPic;
    }

    public String getShopNotice() {
        return shopNotice;
    }

    public void setShopNotice(String shopNotice) {
        this.shopNotice = shopNotice;
    }

    public List<Food> getFoodList() {
        return foodList;
    }

    public void setFoodList(List<Food> foodList) {
        this.foodList = foodList;
    }
}
